#include <iostream>
#include <unistd.h>
using namespace std; 

int main(){
	cout << getpid() << endl; 
	cout << getpgrp() << endl; 
	cout << getsid(0) << endl; 
}
